package com.yunc.modules.chat.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 好友表
 *
 * @author concong tao
 * @since 2019-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_friends")
public class ChatFriends implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 自己ID
     */
    private Long userId;

    /**
     * 朋友ID
     */
    private Long friendId;

    /**
     * 备注昵称
     */
    private String name;

    /**
     * 好友分组
     */
    private Long friendGroupId;

    @TableField(exist = false)
    private Long targetGroupId;
}
